package com.yiwyn.controller;

import com.yiwyn.service.AService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

@RestController
public class AController {

    @Autowired
    private AService aService;

    @GetMapping("/test")
    public String test() {
        Map data = new HashMap();
        data.put("id", "12321");
        data.put("username", "yiwyn");
        String deal = null;
        try {
            deal = aService.deal(data, null);
        } catch (Exception e) {
            System.out.println("系统出现了异常:" + e.getMessage());
        }
        return deal;
    }

}
